package com.atguigu03.field_method.filed.filed;

public class exer1 {
    public  void main(String[] args) {
        Employee e1=new Employee();
        Employee e2=new Employee();
        e1.age=25;
        e1.Id="456789";
        e1.Name="liu";
        e1.salary=21356;
        e1.date.year=2000;
        e1.date.month=9;
        e1.date.day=21;
        System.out.println(e1.date.year+" "+e1.date.month+" "+e1.date.day);

        e2.age=252;
        e2.Id="456";
        e2.Name="liulie";
        e2.salary=13242;
        e2.date=new MyDate();
        e2.date.year=798;

        System.out.println(e1.age+" "+e1.salary);
        System.out.println(e2.date.year+" "+e2.salary);
    }
}


